package com.usian.bussiness.controller;

import com.usian.bussiness.service.BussinessService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("business")
public class BussinessController {
    @Autowired
    private BussinessService bussinessService;
    @RequestMapping("buy")
    public void buy(String userId, String commodityCode,int count){
        bussinessService.bussiness(userId,commodityCode,count);
    }
}
